package com.jzy.constant;

import org.springframework.beans.factory.annotation.Value;

/**
 * @Auther 姬海威 [haiwei.ji@tigermed.net]
 * @Date 2017-6-13 18:48
 */
public class ApplicationProperties {
    /**********************************************************************************
     * 文件上传
     **********************************************************************************/
    @Value("${file.upload.address}")
    public String FILE_UPLOAD_ADDRESS;
    @Value("${file.upload.url}")
    public String FILE_UPLOAD_URL;

    /**********************************************************************************
     * 数据库
     **********************************************************************************/
    @Value("${spring.datasource.url}")
    public String dbUrl;

    @Value("${spring.datasource.username}")
    public String username;

    @Value("${spring.datasource.password}")
    public String password;

    @Value("${spring.datasource.driverClassName}")
    public String driverClassName;

    @Value("${spring.datasource.initialSize}")
    public int initialSize;

    @Value("${spring.datasource.minIdle}")
    public int minIdle;

    @Value("${spring.datasource.maxActive}")
    public int maxActive;

    @Value("${spring.datasource.maxWait}")
    public int maxWait;

    @Value("${spring.datasource.timeBetweenEvictionRunsMillis}")
    public int timeBetweenEvictionRunsMillis;

    @Value("${spring.datasource.minEvictableIdleTimeMillis}")
    public int minEvictableIdleTimeMillis;

    @Value("${spring.datasource.validationQuery}")
    public String validationQuery;

    @Value("${spring.datasource.testWhileIdle}")
    public boolean testWhileIdle;

    @Value("${spring.datasource.testOnBorrow}")
    public boolean testOnBorrow;

    @Value("${spring.datasource.testOnReturn}")
    public boolean testOnReturn;

    @Value("${spring.datasource.poolPreparedStatements}")
    public boolean poolPreparedStatements;

    @Value("${spring.datasource.maxPoolPreparedStatementPerConnectionSize}")
    public int maxPoolPreparedStatementPerConnectionSize;

    @Value("${spring.datasource.filters}")
    public String filters;

    @Value("{spring.datasource.connectionProperties}")
    public String connectionProperties;

    /**********************************************************************************
     * 邮件发送
     **********************************************************************************/
    @Value("${spring.mail.username}")
    public String from;

    /**********************************************************************************
     * 服务器路径配置
     **********************************************************************************/
    @Value("${edc.server.address}")
    public String server_address;
}
